package cn.apptec.test.spring;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by apptec on 2017/7/24.
 *
 * @Author: liuyangsheng
 * @Description:
 * @Modified By:
 */

//@Service("myTestBean")
public class MyTestBean {
    private String testStr = "testStr";

    public String getTestStr() {
        return testStr;
    }


    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        putM(list);

        removeM(list);
        removeM(list);
        removeM(list);
        removeM(list);
        removeM(list);
        removeM(list);
        removeM(list);
        removeM(list);
        removeM(list);
        removeM(list);

        System.out.println("helloworld");
    }

    private static List<Integer> removeM(List<Integer> list) {
        list.remove(0);
        return list;
    }

    private static void putM(List<Integer> list) {
        for (int i = 0; i < 100; i++) {
            list.add(i);
        }
    }

    public void setTestStr(String testStr) {
        this.testStr = testStr;
    }
}
